#include<stdio.h>
#include<sys/types.h>
#include<unistd.h>
int main()
{
    printf("进程1   pid = %d, ppid = %d\n",getpid(),getppid());
    sleep(1);
    printf("进程1/2 pid = %d, ppid = %d, fork = %d\n",getpid(),getppid(),fork());
    sleep(1);
    return 0;

}

